<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Administrator Login - Tennant Creek Online</title>
 <link rel="stylesheet" type="text/css" href="style.css" />
 <script type="text/ecmascript">
 function Validate()
 {
	 if(document.login.username.value == "")
	 {
		alert("Please enter username");
		return false;
	 }	
	 if(document.login.password.value == "")
	 {
		alert("Please enter password");
		return false;
	 }	
 }
 </script>
</head>

<body>
<table width="100%" align="center" border="0" >
<tr>
	<td align="center"  style="padding-top:50px">
  <a href="./">  
 <img src="../images/logo.png" border="0" title="" /></a>
    </td>
</tr>    
<?php
if($_REQUEST['_e'] == 1)
{ ?>
	<tr>
    	<td align="center"><div class="errmsg"><img src="images/error.png" align="absmiddle" />&nbsp;Wrong username or password</div></td>
    </tr>    
<?php } ?>
<tr>
	<td align="center">
    
    	<div class="logincontent">
        	<form name="login" action="logon.php" method="post" onsubmit="return Validate()">
        	<table width="100%" border="0" cellpadding="6" cellspacing="5">
            <tr>
            	<td align="center" ><strong>Login</strong></td>
            </tr>
            <tr>
            	<td align="right">Username</td>
                <td align="left"><input type="text" name="username"  /></td>
           	</tr>
            <tr>
            	<td align="right">Password</td>
                <td align="left"><input type="password" name="password"  /></td>
           	</tr>     
            <tr>
            	<td >&nbsp;</td>
                <td align="left"><input type="submit" value="Login" />&nbsp;
				<a href="forgotpass.php">Forgot Password?</a>
				</td>
          	</tr>      
            </table>            
            </form>
        </div>
        <div class="logincontent_footer">&nbsp;</div>
    
    </td>
</tr>    
</table>

</body>
</html>